For the use of ASCII and CHR functions, Oracle gives the following explanations:ASCII (x) Gets the ASCII value of the character X, CHR () and ASCII () with the opposite effect.That is: The ASCII function is used to convert the character to its
The thing is this, friends of the site using a variety of search back door tools are not found in the PHP Trojan. Always can't find, little black trick is very advanced, each time make
Use finished always to delete the back door, but every time can
preg_replace function Prototype:Mixed preg_replace (mixed pattern, mixed replacement, mixed subject [, int limit])Special Note:The/e modifier causes preg_replace () to use the replacement parameter as PHP code (after replacing the appropriate
The translations performed is:
Copy CodeThe code is as follows:
' & ' (ampersand) becomes ' & '
' ' ' (double quote) becomes ' "When Ent_noquotes was not set.
"(single quote) becomes" only if Ent_quotes is set.
' ' > ' (greater than) becomes ' > '
Accept a concept first: only double quotes are recognized in ASP, only single quotes are recognized in Access SQL, and HTML is recognized as a single double quote because of its lack of rigor. The above is a summary of my experience, the final
Replace special characters in HTML
Text that needs to be replaced.
Replace the finished text.
public string HtmlEncode (string thestring)
{
Thestring=thestring.replace (">", ">");
Thestring=thestring.replace ("
Thestring=thestring.replace (""
Many people think that htmlentities and htmlspecialchars function is the same, are formatted HTML code, I used to think so, but today I found that is not the case.The translations performed is:Copy CodeThe code is as follows:' & ' (ampersand)
Escape character \• A special character constant;• Start with a backslash "\" followed by one or several characters.• Have a specific meaning, different from the original meaning of the character, it is called "escape" character.• Used primarily to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.